<% layout('/layouts/default.html', {title: '退款管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa icon-notebook"></i> ${text('退款管理')}
			</div>
			<div class="box-tools pull-right">
				<a href="#" class="btn btn-default" id="btnSearch" title="${text('查询')}"><i class="fa fa-filter"></i> ${text('查询')}</a>
				<% if(hasPermi('mo:moRefund:edit')){ %>
<!--					<a href="${ctx}/mo/moRefund/form" class="btn btn-default btnTool" title="${text('新增退款')}"><i class="fa fa-plus"></i> ${text('新增')}</a>-->
				<% } %>
				<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
			</div>
		</div>
		<div class="box-body">
			<#form:form id="searchForm" model="${moRefund}" action="${ctx}/mo/moRefund/listData" method="post" class="form-inline hide"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
				<div class="form-group">
					<label class="control-label">${text('手机号')}：</label>
					<div class="control-inline">
						<#form:input path="icUser.mobile" maxlength="50" class="form-control width-120"/>
					</div>
				</div>
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'${text("用户昵称")}', name:'icUser.nicheng', index:'a.user_id', width:150, align:"center"},
		{header:'${text("手机号")}', name:'icUser.mobile', index:'a.user_id', width:150, align:"center"},
		{header:'${text("金额")}', name:'jine', index:'a.jine', width:150, align:"right", formatter: function(val, obj, row, act){
			return js.formatNumber(val, 2, false, ''); // 数值类型格式化 (原始数值, 小数位数, 是否千分位, 默认值，金额情况下设置0.00);
		}},
		{header:'${text("时间")}', name:'createTime', index:'a.create_time', width:150, align:"center"},
		// {header:'${text("任务退款")}', name:'type', index:'a.type', width:150, align:"left"},
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
</script>